package com.geeguo.ebuilder.core.common.utils.key;

import org.apache.commons.lang3.StringUtils;

public class UUIDCheckUtils {
	
	public static boolean check(String id) {
		if (StringUtils.isNotBlank(id) && id.length() == 36) {
			return true;
		}
		return false;
	}

	public static boolean checkIds(String ids) {
		if (StringUtils.isNotBlank(ids) && (ids.length() + 1) % 37 == 0) {
			return true;
		}
		return false;
	}
	
	public static boolean check32(String id) {
		if (StringUtils.isNotBlank(id) && id.length() == 32) {
			return true;
		}
		return false;
	}

	public static boolean check32Ids(String ids) {
		if (StringUtils.isNotBlank(ids) && (ids.length() + 1) % 33 == 0) {
			return true;
		}
		return false;
	}
}